home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 1999 November / maximum-cd-1999-11.iso / Battlezone II / Disk1 / data1.cab / Program_Executable_Files / data.pak / config_SHELL_bzshell_instant.cfg < prev    next >
Encoding:
Text File  |  1999-08-25  |  8.6 KB  |  470 lines

  1. // ================
  2. // BATTLEZONE SHELL
  3. // ================
  4.  
  5. //Exec("bzshell_init.cfg");
  6.  
  7. //
  8. // CREATE SHELL INSTANT ACTION PAGE
  9. //
  10. CreateControl("ShellInstant", "WINDOW")
  11. {
  12.     // inherit root window's dimensions
  13.     Geometry("PARENTWIDTH", "PARENTHEIGHT");
  14.  
  15.     // set window style
  16.     Style("TRANSPARENT", "INERT");
  17.  
  18.     //
  19.     // create the "back" button
  20.     //
  21.     CreateControl("Back", "BUTTON")
  22.     {
  23.         ColorGroup("MAGENTA");
  24.  
  25.         Geometry("LEFT", "TOP");
  26.         Position(20, 30);
  27.         Size(120, 0);
  28.         BorderSize(10);
  29.         BevelSize(5);
  30.         TabSize(80, 10);
  31.         Style("ROLLOVER", "OUTLINE");
  32.         Projector(0);
  33.         Title("Back");
  34.         TitleFont("MEDIUM");
  35.         Cursor("Highlight");
  36.         NotifyParent("Button::Press", "Back");
  37.     }
  38.  
  39.     CreateControl("Instant", "WINDOW")
  40.     {
  41.         Geometry("HCENTRE", "VCENTRE");
  42.         Position(0, 0);
  43.         Size(500, 250);
  44.         BorderSize(10);
  45.         BevelSize(5);
  46.         TabSize(150, 10);
  47.         Style("RIGHTTAB", "OUTLINE");
  48.         Projector(1);
  49.         Title("Instant Action");
  50.         TitleFont("MEDIUM");
  51.  
  52.         CreateControl("List", "LISTBOX")
  53.         {
  54.             ColorGroup("LISTBOX");
  55.             Geometry("RIGHT", "TOP");
  56.             Position(-20, 30);
  57.             Size(210, 190);
  58.             CellSize(210, 10);
  59.             BorderSize(5);
  60.             BevelSize(3);
  61.             Font("SMALL");
  62.             NotifyParent("Listbox::DblClick", "Launch");
  63.             UseVar("shell.instant.name");
  64.             Cursor("Highlight");
  65.         }
  66.     
  67.         //
  68.         // create the all button
  69.         //
  70.         CreateControl("All", "BUTTON")
  71.         {
  72.             ColorGroup("LISTBOX");
  73.  
  74.             Geometry("RIGHT", "TOP");
  75.             Position(-171, 5);
  76.             Size(64, 10);
  77.             BorderSize(3);
  78.             BevelSize(2);
  79.             Style("ROLLOVER", "RADIO");
  80.             Font("SMALL");
  81.             Text("All");
  82.             Cursor("Highlight");
  83.             UseVar("shell.instant.missiontype");
  84.             Value(0);
  85.         }
  86.  
  87.         //
  88.         // create the action button
  89.         //
  90.         CreateControl("Action", "BUTTON")
  91.         {
  92.             ColorGroup("LISTBOX");
  93.  
  94.             Geometry("RIGHT", "TOP");
  95.             Position(-96, 5);
  96.             Size(64, 10);
  97.             BorderSize(3);
  98.             BevelSize(2);
  99.             Style("ROLLOVER", "RADIO");
  100.             Font("SMALL");
  101.             Text("Action");
  102.             Cursor("Highlight");
  103.             UseVar("shell.instant.missiontype");
  104.             Value(1);
  105.         }
  106.  
  107.         //
  108.         // create the strategy button
  109.         //
  110.         CreateControl("Strategy", "BUTTON")
  111.         {
  112.             ColorGroup("LISTBOX");
  113.  
  114.             Geometry("RIGHT", "TOP");
  115.             Position(-21, 5);
  116.             Size(64, 10);
  117.             BorderSize(3);
  118.             BevelSize(2);
  119.             Style("ROLLOVER", "RADIO");
  120.             Font("SMALL");
  121.             Text("Strategy");
  122.             Cursor("Highlight");
  123.             UseVar("shell.instant.missiontype");
  124.             Value(2);
  125.         }
  126.     
  127.         //
  128.         // create the difficulty title
  129.         //
  130.         CreateControl("Difficulty", "STATIC")
  131.         {
  132.             Geometry("LEFT", "TOP");
  133.             Position(0, 45);
  134.             Size(100, 10);
  135.             Style("TRANSPARENT");
  136.             Font("MEDIUM");
  137.             JustifyText("LEFT");
  138.             Text("Difficulty");
  139.         }
  140.  
  141.         //
  142.         // create easy difficulty button
  143.         //
  144.         CreateControl("Easy", "BUTTON")
  145.         {
  146.             ColorGroup("LISTBOX");
  147.  
  148.             Geometry("LEFT", "TOP");
  149.             Position(5, 65);
  150.             Size(65, 10);
  151.             BorderSize(5);
  152.             BevelSize(3);
  153.             Style("ROLLOVER", "RADIO");
  154.             Font("SMALL");
  155.             Text("Easy");
  156.             Cursor("Highlight");
  157.             UseVar("shell.instant.difficulty");
  158.             Value(0);
  159.         }
  160.  
  161.         //
  162.         // create the medium difficulty button
  163.         //
  164.         CreateControl("Medium", "BUTTON")
  165.         {
  166.             ColorGroup("LISTBOX");
  167.  
  168.             Geometry("LEFT", "TOP");
  169.             Position(85, 65);
  170.             Size(65, 10);
  171.             BorderSize(5);
  172.             BevelSize(3);
  173.             Style("ROLLOVER", "RADIO");
  174.             Font("SMALL");
  175.             Text("Medium");
  176.             Cursor("Highlight");
  177.             UseVar("shell.instant.difficulty");
  178.             Value(1);
  179.         }
  180.  
  181.         //
  182.         // create the hard difficulty button
  183.         //
  184.         CreateControl("Hard", "BUTTON")
  185.         {
  186.             ColorGroup("LISTBOX");
  187.  
  188.             Geometry("LEFT", "TOP");
  189.             Position(165, 65);
  190.             Size(65, 10);
  191.             BorderSize(5);
  192.             BevelSize(3);
  193.             Style("ROLLOVER", "RADIO");
  194.             Font("SMALL");
  195.             Text("Hard");
  196.             Cursor("Highlight");
  197.             UseVar("shell.instant.difficulty");
  198.             Value(2);
  199.         }
  200.  
  201.         //
  202.         // create the mission goal title
  203.         //
  204.         CreateControl("Goal", "STATIC")
  205.         {
  206.             Geometry("LEFT", "TOP");
  207.             Position(0, 90);
  208.             Size(150, 10);
  209.             Style("TRANSPARENT");
  210.             Font("MEDIUM");
  211.             JustifyText("LEFT");
  212.             Text("Mission Goal");
  213.         }
  214.  
  215.         //
  216.         // create the CTF button
  217.         //
  218.         CreateControl("CTF", "BUTTON")
  219.         {
  220.             ColorGroup("LISTBOX");
  221.  
  222.             Geometry("LEFT", "TOP");
  223.             Position(5, 110);
  224.             Size(65, 10);
  225.             BorderSize(5);
  226.             BevelSize(3);
  227.             Style("ROLLOVER", "RADIO");
  228.             Font("SMALL");
  229.             Text("CTF");
  230.             Cursor("Highlight");
  231.             UseVar("shell.instant.goaltype");
  232.             Value(0);
  233.         }
  234.  
  235.         //
  236.         // create the assault button
  237.         //
  238.         CreateControl("Assault", "BUTTON")
  239.         {
  240.             ColorGroup("LISTBOX");
  241.  
  242.             Geometry("LEFT", "TOP");
  243.             Position(85, 110);
  244.             Size(65, 10);
  245.             BorderSize(5);
  246.             BevelSize(3);
  247.             Style("ROLLOVER", "RADIO");
  248.             Font("SMALL");
  249.             Text("Assault");
  250.             Cursor("Highlight");
  251.             UseVar("shell.instant.goaltype");
  252.             Value(1);
  253.         }
  254.  
  255.         //
  256.         // create the defend button
  257.         //
  258.         CreateControl("Defend", "BUTTON")
  259.         {
  260.             ColorGroup("LISTBOX");
  261.  
  262.             Geometry("LEFT", "TOP");
  263.             Position(165, 110);
  264.             Size(65, 10);
  265.             BorderSize(5);
  266.             BevelSize(3);
  267.             Style("ROLLOVER", "RADIO");
  268.             Font("SMALL");
  269.             Text("Defend");
  270.             Cursor("Highlight");
  271.             UseVar("shell.instant.goaltype");
  272.             Value(2);
  273.         }
  274.  
  275.         //
  276.         // create the computer force title
  277.         //
  278.         CreateControl("Computer", "STATIC")
  279.         {
  280.             Geometry("LEFT", "TOP");
  281.             Position(0, 135);
  282.             Size(150, 10);
  283.             Style("TRANSPARENT");
  284.             Font("MEDIUM");
  285.             JustifyText("LEFT");
  286.             Text("Computer Force");
  287.         }
  288.  
  289.         //
  290.         // create the small force button
  291.         //
  292.         CreateControl("Small", "BUTTON")
  293.         {
  294.             ColorGroup("LISTBOX");
  295.  
  296.             Geometry("LEFT", "TOP");
  297.             Position(5, 155);
  298.             Size(65, 10);
  299.             BorderSize(5);
  300.             BevelSize(3);
  301.             Style("ROLLOVER", "RADIO");
  302.             Font("SMALL");
  303.             Text("Small");
  304.             Cursor("Highlight");
  305.             UseVar("shell.instant.computerforce");
  306.             Value(0);
  307.         }
  308.  
  309.         //
  310.         // create the medium force button
  311.         //
  312.         CreateControl("Medium", "BUTTON")
  313.         {
  314.             ColorGroup("LISTBOX");
  315.  
  316.             Geometry("LEFT", "TOP");
  317.             Position(85, 155);
  318.             Size(65, 10);
  319.             BorderSize(5);
  320.             BevelSize(3);
  321.             Style("ROLLOVER", "RADIO");
  322.             Font("SMALL");
  323.             Text("Medium");
  324.             Cursor("Highlight");
  325.             UseVar("shell.instant.computerforce");
  326.             Value(1);
  327.         }
  328.  
  329.         //
  330.         // create the large force button
  331.         //
  332.         CreateControl("Large", "BUTTON")
  333.         {
  334.             ColorGroup("LISTBOX");
  335.  
  336.             Geometry("LEFT", "TOP");
  337.             Position(165, 155);
  338.             Size(65, 10);
  339.             BorderSize(5);
  340.             BevelSize(3);
  341.             Style("ROLLOVER", "RADIO");
  342.             Font("SMALL");
  343.             Text("Large");
  344.             Cursor("Highlight");
  345.             UseVar("shell.instant.computerforce");
  346.             Value(2);
  347.         }
  348.  
  349.         //
  350.         // create player force title
  351.         //
  352.         CreateControl("Player", "STATIC")
  353.         {
  354.             Geometry("LEFT", "TOP");
  355.             Position(0, 180);
  356.             Size(120, 10);
  357.             Style("TRANSPARENT");
  358.             Font("MEDIUM");
  359.             JustifyText("LEFT");
  360.             Text("Player Force");
  361.         }
  362.  
  363.         //
  364.         // create the small force button
  365.         //
  366.         CreateControl("Small", "BUTTON")
  367.         {
  368.             ColorGroup("LISTBOX");
  369.  
  370.             Geometry("LEFT", "TOP");
  371.             Position(5, 200);
  372.             Size(65, 10);
  373.             BorderSize(5);
  374.             BevelSize(3);
  375.             Style("ROLLOVER", "RADIO");
  376.             Font("SMALL");
  377.             Text("Small");
  378.             Cursor("Highlight");
  379.             UseVar("shell.instant.playerforce");
  380.             Value(0);
  381.         }
  382.  
  383.         //
  384.         // create the medium force button
  385.         //
  386.         CreateControl("Medium", "BUTTON")
  387.         {
  388.             ColorGroup("LISTBOX");
  389.  
  390.             Geometry("LEFT", "TOP");
  391.             Position(85, 200);
  392.             Size(65, 10);
  393.             BorderSize(5);
  394.             BevelSize(3);
  395.             Style("ROLLOVER", "RADIO");
  396.             Font("SMALL");
  397.             Text("Medium");
  398.             Cursor("Highlight");
  399.             UseVar("shell.instant.playerforce");
  400.             Value(1);
  401.         }
  402.  
  403.         //
  404.         // create the large force button
  405.         //
  406.         CreateControl("Large", "BUTTON")
  407.         {
  408.             ColorGroup("LISTBOX");    
  409.  
  410.             Geometry("LEFT", "TOP");
  411.             Position(165, 200);
  412.             Size(65, 10);
  413.             BorderSize(5);
  414.             BevelSize(3);
  415.             Style("ROLLOVER", "RADIO");
  416.             Font("SMALL");
  417.             Text("Large");
  418.             Cursor("Highlight");
  419.             UseVar("shell.instant.playerforce");
  420.             Value(2);
  421.         }
  422.     }
  423.  
  424.     //
  425.     // create the "launch" button
  426.     //
  427.     CreateControl("Launch", "BUTTON")
  428.     {
  429.         ColorGroup("MAGENTA");
  430.  
  431.         Geometry("RIGHT", "BOTTOM");
  432.         Position(-20, -20);
  433.         Size(120, 0);
  434.         BorderSize(10);
  435.         BevelSize(5);
  436.         TabSize(80, 10);
  437.         Title("Launch");
  438.         TitleFont("MEDIUM");
  439.         Style("ROLLOVER", "RIGHTTAB", "OUTLINE");
  440.         Projector(4);
  441.         Cursor("Highlight");
  442.         NotifyParent("Button::Press", "Launch");
  443.     }
  444.  
  445.     //
  446.     // handle activation
  447.     //
  448.     OnEvent("Control::StartFadeIn")
  449.     {
  450.         Cmd("shell.instant.load");
  451.     }
  452.  
  453.     //
  454.     // handle the "launch" event
  455.     //
  456.     OnEvent("Launch")
  457.     {
  458.         Cmd("shell.instant.launch");
  459.     }
  460.  
  461.     //
  462.     // handle the "back" event
  463.     //
  464.     OnEvent("Back")
  465.     {
  466.         FadeOut();
  467.         FadeIn("|ShellMain");
  468.     }
  469. }
  470.